package com.cy.ppj.comm.exception;

import lombok.Getter;

/**
 * @description: 错误异常
 * @author: Ocean
 * @create: 2018-06-14 16:42
 **/
public class MsgException extends RuntimeException {

    @Getter
    private Integer code;
    @Getter
    private Object value;

    public MsgException(String message) {
        super(message);
    }

    public MsgException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public MsgException(String message, Integer code, Object value) {
        super(message);
        this.code = code;
        this.value = value;
    }
}
